<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%--引用标签--%>
<%@ include file="/WEB-INF/include/taglib.jsp"%>
<%@ include file="/WEB-INF/include/head.basic.jsp"%>
<%@ include file="/WEB-INF/include/head.ueditor.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>数据新增</title>
<script type="text/javascript" src="<c:url value='/js/jquery-form.js'/>"></script>
<script type="text/javascript">
	$(function(){
		Bean.init();
	});
</script>
</head>
<body>
<div id="panel">
	<form:form action="deployFlow" method="post"  id="saveForm" enctype="multipart/form-data">
		<table align="center" cellpadding="10px" style="border-spacing: 0;">
			<tr><td>部署名称：<input name="title" type="text" class="easyui-textbox" style="width:300px; height:30px;"/></td></tr>
			<tr><td>流程图文件(bpmn)：<input class="easyui-filebox validatebox" missingMessage="请选择导入的文件！" name="bpmnFile" id="blackListFile" data-options="validType:'validateFile',required:true,buttonText:'选择文件'," style="width:300px; height:30px;">&nbsp;&nbsp;&nbsp;<front style="color:red;">*注：请选择BPMN文件！</front></td></tr>
			<tr><td>流程图文件(png)：<input class="easyui-filebox validatebox" missingMessage="请选择导入的文件！" name="pngFile" id="blackListFile" data-options="validType:'validateFile',required:true,buttonText:'选择文件'," style="width:300px; height:30px;">&nbsp;&nbsp;&nbsp;<front style="color:red;">*注：请选择PNG文件！</front></td></tr>
		</table>
	</form:form>
</div>
<div id="foot" style="padding:5px;text-align:center ; ">
	<a href="###" id="saveBtn" class="easyui-linkbutton" iconCls="icon-save" onclick="Bean.forSave();" >开始部署</a>
</div>
</body>
<script type="application/javascript">
	var Bean={
		options : {
			title : "流程定义部署",
			fit : false,
			iconCls:null,
			footer : "#foot",
			headerCls : "titleCss"
		},
		init:function(){
			$("#panel").panel(this.options);//设置Panel信息
			if('${message}'!=null && '${message}'!=''){
				$.messager.alert('提示', '${message}', 'warning');
			}
		},
		forSave() {
			//使按钮失效防止重复提交
			$("#saveBtn").linkbutton("disable");
			$("#saveForm").submit();
		}
	};
</script>
</html>